package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.AddressBook;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface AddressBookService extends IService<AddressBook> {
 R<List<AddressBook>> getAddressBooks(AddressBook addressBook);

 R<String> save1(AddressBook addressBook);

 R<AddressBook> getDefaultAddressBook();

 R<AddressBook> setDefault(AddressBook addressBook);

 R<String> upDateAddress( AddressBook addressBook);
}
